#include <iostream>

#include "ros/ros.h"

int main(int argc, char* argv[]) {
    ros::init(argc, argv, "demo7");
    ros::NodeHandle nodeHandle;
    ROS_INFO("Hello ROS!!!");
    std::vector<std::string> names{};
    nodeHandle.getParamNames(names);
    for (const std::string &name : names) {
        ROS_INFO("==> %s", name.c_str());
    }
    std::string username;
    std::string password;
    if (nodeHandle.getParam("/demo/username", username)) {
        ROS_INFO("==> username: %s", username.c_str());
    }
    if (nodeHandle.getParam("/demo/password", password)) {
        ROS_INFO("==> username: %s", password.c_str());
    }

    return EXIT_SUCCESS;
}